/*
 *@file		main.cpp
 *
 *@brief	main. 
 *
 *@author	liangbing
 *@date		2012-05-14
 *@version	1.0
 *$Id: main.cpp,v 1.0 2012/05/14 13:27:01 liangbing Exp $
 */


#ifdef linux
#include <getopt.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include "dhdm.h"


//---------------------------The macro definition-----------------------------------------


//---------------------------The variable definition--------------------------------------


//---------------------------The function prototype---------------------------------------


//---------------------------The function definition--------------------------------------
/*
 * The main function
 */
int main( int argc, char ** argv ) 
{
	if( InitDMEnv() == 0 ) {
		printf( "DMEnv init fail!\n" );
		return 1;
	}

	StartDevices();
	sleep( 60 * 60 );
	StopDevices();
	DestroyDMEnv();
	return 0; 
}


